﻿namespace MQTTServer.Models
{
    /// <summary>
    /// 平台(服务器)接收推送信息确认
    /// </summary>
    public class PushAck
    {
        /// <summary>
        ///  平台(服务器)接收推送信息确认
        /// </summary>
        public string @operator { get; set; }

        /// <summary>
        ///  PushAckInfo
        /// </summary>
        public PushAckInfo info { get; set; }
    }

    public class PushAckInfo
    {
        /// <summary>
        ///  平台(服务器)接收推送信息确认
        /// </summary>
        public PushAckType PushAckType { get; set; }
        
        /// <summary>
        ///  PushAckType=1;填接收到的陌生人 抓拍库 ID PushAckType=2;填接收到的控制记 录库 ID
        /// </summary>
        public int SnapOrRecordID { get; set; }
        
        /// <summary>
        ///   操作结果“ok”/“fail
        /// </summary>
        public string result { get; set; }
        
        /// <summary>
        ///   当 result 为“fail”时，错误信息
        /// </summary>
        public string detail { get; set; }
    }
}